package com.ge.healthcare.autosc.common.database.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.ge.healthcare.autosc.common.database.pojo.HstProdiagsSchedule;

/*
 *
 * Copyright (C) 2011 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the
 * General Electric Company (GE). You shall not disclose this software and
 * shall use it only in accordance with the terms of the license agreement
 * you entered into with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES. 
 */

public class HstProdiagsScheduleDAOImpl  extends BaseDAO implements HstProdiagsScheduleDAO {

	private static final long serialVersionUID = 6383937724058764423L;

	public HstProdiagsScheduleDAOImpl() {
		super(HstProdiagsSchedule.TABLE_NAME);
	}

	public void saveOrUpdate(HstProdiagsSchedule hstProdigasSchedule) {
		super.save(hstProdigasSchedule);
		
	}
	public List<HstProdiagsSchedule> getAllObjects() {
		DetachedCriteria dc = DetachedCriteria.forClass(HstProdiagsSchedule.class);
		return (List<HstProdiagsSchedule>)getHibernateTemplate().findByCriteria(dc);
	}
	
}
